package com.alan.java8.rule;

import com.alan.java8.Apple;

/**
 * Created by Alan on 2017/10/6.
 */
public class AppleHeavyWeightPredicate implements ApplePredicate{

    @Override
    public boolean test(Apple apple) {
        return apple.getWeight()>120;
    }
}
